package com.supermap.application.dao;

import com.supermap.application.entity.TDepartment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentDao extends JpaRepository<TDepartment, String> {

    @Query("select t from TDepartment t")
    List<TDepartment> findAll();
}
